package com.vf.admin.client.service;

import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.entity.AppMingxiJinbi;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface AppMingxiJinbiService {

    List<AppMingxiJinbi> findList(Integer userid, SplitPageBean splitPage);

    AppMingxiJinbi get(Integer id);

    void save(AppMingxiJinbi pojo);

    /**
     * 添加明细
     *
     * @param userid  userid
     * @param num     数量
     * @param leixing 类型  1增加  2减少
     * @param beizhu  备注
     */
    void addMingxi(Integer userid, BigDecimal num, Integer leixing, String beizhu);

    //土豪值
    double jinbiGrowthSum(Integer userId);


    /**
     * 首页统计
     *
     * @param params
     * @return
     */
    List<AppMingxiJinbi> indexCount(Map<String, Object> params);


    List<AppMingxiJinbi> orgInfo (Map<String, Object> params, SplitPageBean splitPage);


    List<AppMingxiJinbi> countNum(Map<String, Object> params);


}
